<?php
/**
 * Created by PhpStorm.
 * User: evenvi
 * Date: 16-8-11
 * Time: 上午9:24
 */
use Evenvi\Mqtt;
include "MqttClient.php";


$mqClient = new Evenvi\Mqtt\MqttClient();
$mqClient->pub("php-topic","Hello World! at ".date("r"),2);

